<extend name="Public:innerbase" />
<block name="js">

<script src="{:RES}/js/date/WdatePicker.js"></script>

</block>
<block name="content">
<div class="container-fluid">
	<ul class="nav nav-tabs wm-tabs">
		<li class="active"><a href="javascript:void(0)">代理列表</a></li>

		 <li><a href="{:U('Member/addchannel')}">添加代理</a></li>
	</ul>
	<div class="page-header wm-page-header">

	 	<form method="get" action="__SELF__" class="form-inline">
		<label>姓名</label>



		<input name="username" type="text" value="{$_GET['username']}" class="form-control" />



		<label>手机号</label>



		<input name="phone" type="text" value="{$_GET['phone']}" class="form-control" />



		<button class="btn btn-primary" type="submit">



			<span class="glyphicon glyphicon-search"></span>



			查询



		</button>



		</form> 



	</div>

<script>
			function sub(id,star=0){
				$("#star").get(0).selectedIndex = star;
				$("input[name='orderid']").val(id);
			}
		</script>


	<TABLE class="table wm-table-bordered table-striped table-hover">



		<THEAD>



		<TR>



			<TH>ID</TH>

			<TH>用户名</TH>
			<TH>手机号</TH>
		
<TH>已打款金额</TH>
			<TH>注册时间</TH>
			<TH>盈亏饭店</TH>
			<TH>线上客户数</TH>
			
			<TH>总充值</TH>
			<TH>当前盈亏比</TH>

			<TH>操作</TH>    



			



		</TR>



		</THEAD>



		<TBODY>



		<volist id="list" name="list">



		<TR>



			<TD>{$list.id}</TD>



			<TD>{$list.username}</TD>



			<TD>{$list.phone}</TD>
			
			<TD>{$list.allgive}</TD>


			<TD>{$list.create_time|date='Y-m-d H:i',###}</TD>
<TD>{$list.fandian}%</TD>


			<TD><?php echo count($list['num']);?></TD>


<TD>{$list.pay}</TD>

<TD><?php echo $list['win']-$list['win_amont'] ;?>/{$list.las|default=0}</TD>

		<TD style="text-align:center;">
		

<span class="btn btn-xs btn-danger" onclick='spark.confirm_jump("确认并给给代理打款?", "{:U('User/Member/givemoney',['id'=>$list['id'],'status'=>1])}")'>打款

				</span>

				<a href="{:U('channeldetail?id='.$list['id'])}" class="btn btn-xs btn-primary">修改</a>

				
<span class="btn btn-xs btn-danger" onclick='spark.confirm_jump("会员删除后不可登录代理页面，您确定要继续吗?", "{:U('User/Member/channeldel',['id'=>$list['id'],'status'=>1])}")'>删除

				</span>

		

			</TD>



		</form>



		</TR>



		</volist>



	  </TBODY>



	</TABLE>



	<div>{$page}</div>



</div>




</block>